package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SjImportRecordMapper;
import com.ruoyi.system.domain.SjImportRecord;
import com.ruoyi.system.service.ISjImportRecordService;

/**
 * 企标导入数据记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-02
 */
@Service
public class SjImportRecordServiceImpl implements ISjImportRecordService 
{
    @Autowired
    private SjImportRecordMapper sjImportRecordMapper;

    /**
     * 查询企标导入数据记录
     * 
     * @param id 企标导入数据记录主键
     * @return 企标导入数据记录
     */
    @Override
    public SjImportRecord selectSjImportRecordById(Long id)
    {
        return sjImportRecordMapper.selectSjImportRecordById(id);
    }

    /**
     * 查询企标导入数据记录列表
     * 
     * @param sjImportRecord 企标导入数据记录
     * @return 企标导入数据记录
     */
    @Override
    public List<SjImportRecord> selectSjImportRecordList(SjImportRecord sjImportRecord)
    {
        return sjImportRecordMapper.selectSjImportRecordList(sjImportRecord);
    }

    /**
     * 新增企标导入数据记录
     * 
     * @param sjImportRecord 企标导入数据记录
     * @return 结果
     */
    @Override
    public int insertSjImportRecord(SjImportRecord sjImportRecord)
    {
        return sjImportRecordMapper.insertSjImportRecord(sjImportRecord);
    }

    /**
     * 修改企标导入数据记录
     * 
     * @param sjImportRecord 企标导入数据记录
     * @return 结果
     */
    @Override
    public int updateSjImportRecord(SjImportRecord sjImportRecord)
    {
        return sjImportRecordMapper.updateSjImportRecord(sjImportRecord);
    }

    /**
     * 批量删除企标导入数据记录
     * 
     * @param ids 需要删除的企标导入数据记录主键
     * @return 结果
     */
    @Override
    public int deleteSjImportRecordByIds(Long[] ids)
    {
        return sjImportRecordMapper.deleteSjImportRecordByIds(ids);
    }

    /**
     * 删除企标导入数据记录信息
     * 
     * @param id 企标导入数据记录主键
     * @return 结果
     */
    @Override
    public int deleteSjImportRecordById(Long id)
    {
        return sjImportRecordMapper.deleteSjImportRecordById(id);
    }

    /**
     * 数量统计
     *
     * @param
     * @return 结果
     */
    public String countStandardImportant(){
        return sjImportRecordMapper.countStandardImportant();
    }
}
